<?php 
	session_cache_limiter('public, must-revalidate');
?>

<?php
function displaySearch($pays) {
	?>
<div id="recherche">

<form name="SEARCH" method="POST" action="?content=recherche&q=search">

<table width="100%">
	<tr>
		<td style="font-size: 20px;vertical-align: middle;">
			&nbsp;&nbsp;Recherche&nbsp;&nbsp;&nbsp;&nbsp;<br />
		</td>
		<td>
			<select name="V_DEP">
				<option value="">Ville de d&eacute;part</option>
				<?php
					$sql = mysql_query("SELECT * FROM VILLE ORDER BY VILLE_NOM ASC");
						while($row = mysql_fetch_array($sql)) {
							echo '<option value="'.$row['VILLE_NOM'].'">'.$row['VILLE_NOM'].'
				</option>';
					} 
				?>
			</select>
		</td>
		<td>
			<select name="V_ARR">
				<option value="">Ville d'arriv&eacute;e</option>
				<?php
					$sql = mysql_query("SELECT * FROM VILLE ORDER BY VILLE_NOM ASC");
						while($row = mysql_fetch_array($sql)) {
							echo '<option value="'.$row['PAYS_NOM'].'">'.$row['VILLE_NOM'].'
				</option>';
					} 
				?>
			</select>
			<input type="submit" name="search"  value="CHERCHER" />
		</td>
	</tr>
</table>
</form>
</div>
	<?php
}
?>

<?php 
	displaySearch($pays); 
	
?>
